//
//  HMTool.h
//  仿真项目开发
//
//  Created by B.HOPE on 2017/3/22.
//  Copyright © 2017年 B.HOPE. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>
#import "HMLoginModel.h"
#import "HMDefaultsTool.h"

@interface HMTool : AFHTTPSessionManager

+ (instancetype)sharedNetworkTool;

//GET请求

- (void)GETWithURLString:(NSString *)URLString parameters:(id)parameters success:(void(^)(id responseObject))success faile:(void(^)(NSError *error))faile;

//POST请求

- (void)POSTWithURLString:(NSString *)URLString parameters:(id)parameters success:(void(^)(id responseObject))success faile:(void(^)(NSError *error))faile;

/** 更新当前用户数据的模型 */
+ (void)updateCurrentIDModel:(HMLoginModel *)loginModel;
/** 获取当前用户数据的模型 */
+ (HMLoginModel *)getCurrentIDModel;
@end
